// 支付接口

import { http } from "@/utils/http"

// 获取微信支付参数接口(调用原生微信小程序的数据类型), 参数为订单ID
export const getPayWxPayMiniPayAPI = (data: {orderId: string}) => {
    return http<WechatMiniprogram.RequestPaymentOption>({
        method: 'GET',
        url: '/pay/wxPay/miniPay',
        data
    })
}

// 模拟支付接口-内测版
export const getPayMockAPI = (data: {orderId: string}) => {
    return http({
        method: 'GET',
        url: '/pay/mock',
        data
    })
}